package name.as3.frameworkTest.commands
{
import name.as3.cmdFrameworks.addins.mediator.View2CenterAddin;
import name.as3.cmdFrameworks.interfaces.addins.IMediatorAddin;
import name.as3.cmdFrameworks.interfaces.INotification;
import name.as3.frameworkTest.enums.UIPanelType;
import name.as3.frameworkTest.mediators.CreatePanelMediator;
import name.as3.frameworkTest.view.CreatePanel;
import name.as3.frameworkTestSupport.command.TestAppCommand;

public class OnNeedCreateCommand extends TestAppCommand
{
	/**
	 *
	 */
	public function OnNeedCreateCommand()
	{
		super();
	}
//==================================================================================================
// public
//==================================================================================================
	override public function execute(obNote:INotification):void
	{
		this.uiManager.switchMediator([UIPanelType.LoginPanel],
			null,
			UIPanelType.CreatePanel,
			new CreatePanelMediator(),
			new CreatePanel(), 
			Vector.<IMediatorAddin>([new View2CenterAddin()]) );
	}
}
}